package base.utils;

import java.util.List;

public class PrintUtils {

    public static void print(int[] list) {

        System.out.print("{ ");//sout
        for (int item : list) {
            System.out.print(item + ",");
        }
        System.out.print("} ");
        System.out.println();
    }


    public static void print(List list) {

        System.out.print("{ ");
        for (Object item : list) {
            System.out.print(item + ",");
        }
        System.out.print("} ");
        System.out.println();
    }

    public static void print(String... strArray) {
        if (strArray.length == 0) return;

        for (int i = 0; i < strArray.length; i++) {
            System.out.println(strArray[i]);
        }

    }

    public static void print(int index , int... strArray) {
        if (strArray.length == 0) return;

        for (int i = 0; i < strArray.length; i++) {
            System.out.println(strArray[i]);
        }

    }



    public static void print(Object content) {
        System.out.println(content);
    }


}
